package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.dto.QueryDeviceDataListByDayDto;
import com.zzyl.nursing.vo.MemberFamilyListByPageVo;
import com.zzyl.nursing.vo.MemberFamilyVo;
import com.zzyl.nursing.vo.QueryDeviceDataListByDayVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface FamilyMemberElderMapper extends BaseMapper<FamilyMemberElder> {
    List<MemberFamilyVo> selectElderList(Long userId);

    List<MemberFamilyListByPageVo> listByPage(Long userId);

    List<QueryDeviceDataListByDayVo> queryDeviceDataListByDay(
            @Param("iotId") String iotId,
            @Param("functionId") String functionId,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime);

    List<QueryDeviceDataListByDayVo> queryDeviceDataListByWeek(
            @Param("iotId") String iotId,
            @Param("functionId") String functionId,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime);
}
